package com.lagou.homework.stage2.no3;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {
        // 1.创建TalkService接口类应用指向父类CallPackage对象
        TalkService talkService = new CallPackage(59,120,60);
        // 2.获取手机卡类型枚举类——大卡类型
        MobileCardType mobileCardType = MobileCardType.BIG;
        // 3.创建手机卡引用指向手机卡对象
        MobileCard mobileCard = new MobileCard(mobileCardType, "18701019899", "阿丹","123456", 99.9,120,"20GB");
        // 4. 调用父类和子类共有方法test1
        talkService.test1(12, mobileCard);

        System.out.println("--------------------------------------");
        // 5.创建NetService接口类型引用指向NetPackage对象
        NetService netService = new NetPackage(20,"20GB");
        // 2.获取手机卡类型枚举类——小卡类型
        MobileCardType mobileCardType1 = MobileCardType.SMALL;
        // 3.创建手机卡引用指向手机卡对象
        MobileCard mobileCard1 = new MobileCard(mobileCardType1, "18911668866","小红","654321",66.6,240,"10GB");
        // 4.调用父类和子类共有的方法test2
        netService.test2("512MB",mobileCard1);
    }
}
